/**
 * @fileoverview Helper namespace in the Trial module, driven by ex.trial.
 *
 * This file is part of the second module to be loaded in the example app.
 * The Deps module showed you how a module can have more than one callback.
 * The Trial module shows how you can only use one to kick off processing
 * in other namespaces within the module.
 */

goog.provide('ex.halp');

goog.require('goog.dom');
goog.require('goog.crypt.Sha1');

ex.halp.halp = function() {
  var sha = new goog.crypt.Sha1();
  sha.update("This is the Trial module");
  var hash = sha.digest();
  
  var newStatus = goog.dom.createDom('div');
  newStatus.innerHTML = "Module hash: " + hash.join("");
  
  goog.dom.$('status').appendChild(newStatus);
};

